#ifndef MYCUSTOMPLOT_H
#define MYCUSTOMPLOT_H
//远端第四次修改
//本地第四次修改
#include "myaxisticker.h"
#include <numeric>
#include <QHash>
class MyCustomPlot : public QCustomPlot
{
    Q_OBJECT
public:
    explicit MyCustomPlot(QWidget *parent = nullptr);
    QVector<size_t> findPeaks(const QVector<double> &src, int distance=0);
    void setMarkerShow(bool Std);
    void setMarkVal(QString val);
private:
    MyAxisTicker *AxisTicker;
    QFile file;
    QVector<double> vecFreq;
    QVector<double> vecLev;
//    QCPItemText *textLable;
    QCPItemText *textLableShow;
    QCPItemLine *arrow;
    QCPItemTracer *tracer;
    QVector<size_t> MaxVec;
    bool isDragging;

public slots:
    void onMouseMoved(QMouseEvent *event);
    void onMousePree(QMouseEvent *event);

};

#endif // MYCUSTOMPLOT_H
